projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06a1ab1
)
(ftxfont_open): Don't set
author
Kenichi Handa
<handa@m17n.org>
Thu, 7 Feb 2008 01:14:21 +0000
(
01:14
+0000)
committer
Kenichi Handa
<handa@m17n.org>
Thu, 7 Feb 2008 01:14:21 +0000
(
01:14
+0000)
dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
src/ftxfont.c
patch
|
blob
|
history
diff --git
a/src/ftxfont.c
b/src/ftxfont.c
index 49222fdb514e7c62547af0735dc1acaa28431bb9..da56ef0faeeedd3a261002dcba1ebed575beebd1 100644
(file)
--- a/
src/ftxfont.c
+++ b/
src/ftxfont.c
@@
-351,6
+351,14
@@
ftxfont_open (f, entity, pixel_size)
dpyinfo->smallest_char_width = font->min_width, fonts_changed_p |= 1;
}
+ if (fonts_changed_p)
+ {
+ if (dpyinfo->smallest_font_height == 0)
+ dpyinfo->smallest_font_height = 1;
+ if (dpyinfo->smallest_char_width == 0)
+ dpyinfo->smallest_char_width = 1;
+ }
+
return font;
}